package com.danger.Util;

import java.io.File;

/**
 * Created by danger on 2016/4/13.
 */
public class SaveFile {

    public static boolean saveFile(String path, String savePath) {
        boolean flag = false;
        File file = new File(path);
        File newFile = new File(savePath);
        if (file.exists()) {
            flag = file.renameTo(newFile);
            return flag;
        } else {
            return false;
        }
    }
}